const Controller = require('egg').Controller;
const Mock = require("mockjs")
const paymentlist = Mock.mock({
    "list|20":[
        {
            'data': '@date("2021年MM月dd日HH时mm分ss秒")',
            "price":/\d{2}/,
            'mode':/(微信支付|支付宝支付)/,
            'id':'@id'
        }
    ]
})
class HomeController extends Controller {
    async payment (){
        const {ctx} = this
        ctx.body = {
            code:200,
            paymentlist:paymentlist.list
        }
    }
}


module.exports = HomeController;